home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 13 / boot-disc-1997-09.iso / HyprWire / DATA.Z / 04 TextArea.mdf < prev    next >
Text File  |  1997-01-21  |  9KB  |  376 lines

  1. kxKinetix
  2. kxType = kxSmalltalkJavaPlugIn
  3.  
  4. kxModuleDefinition TextArea = 
  5.   {
  6.   kxPublicName = "Text Area"
  7.   kxVersion = "1.0"
  8.   kxCreationTime = "02/18/96  12:26:15 PM"
  9.   kxAuthor = "Kinetix"
  10.   kxLargeIcon = kxBmResType "ModIcons.dll" "TXTAREA2" 0xFF00FF
  11.   kxSmallIcon = kxBmResType "ModIcons.dll" "TXTAREA1" 0xFF00FF
  12.   kxSmalltalkLibraries = "widgets" 
  13.   kxSmalltalkProxyClass = TextAreaBundle
  14.   kxFlags = kxEmbeddedWindow
  15.   kxShortDescription = "TextArea widget which presents the user with a multiline area for displaying or editing text."
  16. //  kxHelpDoc = "http://www.hyperwire.com/helpdocs/Widgets/TextArea/help.html"
  17.  
  18.   // The Java class which implements the plug-in...
  19.   kxPlugInClass = TextAreaPlugIn
  20.  
  21.   // The Smalltalk editor classes used to edit the properties of this plug-in...
  22.   kxPropertyEditors =  TextAreaEditor OpusLabelCommentEditor ModuleStateEditor SizePositionEditor OpusColorEditor PortEditor
  23.  
  24.   // The Smalltalk class which will draw the layout view representation for this plug-in...
  25.   kxLayoutViewProxyClass = TextAreaAuthorRep
  26.  
  27.  
  28.   kxInputPorts =
  29.     {
  30.     kxInclude "Basic.ipt"
  31.     kxInclude "VisualBasicCommon.ipt"
  32.     kxPort MakeClickable =
  33.       {
  34.       kxFlags = kxSystem
  35.       kxJavaMethod = wiMakeClickable
  36.       kxJavaSignature = "()Z"
  37.       kxPublicNames = "Make Clickable" "Was UnClickable"
  38.       }
  39.  
  40.     kxPort MakeUnClickable =
  41.       {
  42.       kxFlags = kxSystem
  43.       kxJavaMethod = wiMakeUnClickable
  44.       kxJavaSignature = "()Z"
  45.       kxPublicNames = "Make UnClickable" "Was Clickable"
  46.       }
  47.  
  48.     kxPort MakeEditable =
  49.       {
  50.       kxJavaMethod = wiMakeEditable
  51.       kxJavaSignature = "()Z"
  52.       kxPublicNames = "Make Editable" "Was UnEditable"
  53.       }
  54.  
  55.     kxPort MakeUnEditable =
  56.       {
  57.       kxJavaMethod = wiMakeUnEditable
  58.       kxJavaSignature = "()Z"
  59.       kxPublicNames = "Make UnEditable" "Was Editable"
  60.       }
  61.  
  62.     kxPort SelectAll =
  63.       {
  64.       kxJavaMethod = wiSelectAll
  65.       kxJavaSignature = "()Z"
  66.       kxPublicNames = "Select All" "Is TextArea valid"
  67.       }
  68.  
  69.     kxPort SetSelection =
  70.       {
  71.       kxJavaMethod = wiSetSelection
  72.       kxJavaSignature = "(LPoint;)Z"
  73.       kxPublicNames = "Set Selection" "a caret position or range (aPoint)" "Is TextArea Valid"
  74.       }
  75.  
  76.     kxPort GetSelection =
  77.       {
  78.       kxJavaMethod = wiGetSelection
  79.       kxJavaSignature = "()LPoint"
  80.       kxPublicNames = "Get Selection" "Selection start,end"
  81.       }
  82.  
  83.     kxPort GetSelectedText = 
  84.       {
  85.       kxJavaMethod = wiGetSelectedText
  86.       kxJavaSignature = "()LString"
  87.       kxPublicNames = "Get Selected Text" "Selected Text String"
  88.       }
  89.  
  90.     kxPort SetFocusandEnable =
  91.       {
  92.       kxJavaMethod = wiEnableAndSetFocus
  93.       kxJavaSignature = "()Z"
  94.       kxPublicNames = "Set Focus and Enable" "Was TextArea Not Focussed"
  95.       }
  96.  
  97.     kxPort SetFocus =
  98.       {
  99.       kxJavaMethod = wiSetFocus
  100.       kxJavaSignature = "()Z"
  101.       kxPublicNames = "Set Focus" "Was TextArea Not Focussed"
  102.       }
  103.  
  104.     kxPort LoseFocus =
  105.       {
  106.       kxJavaMethod = wiKillFocus
  107.       kxJavaSignature = "()Z"
  108.       kxPublicNames = "Lose Focus" "Was TextArea Focussed"
  109.       }
  110.  
  111.     kxPort GetLength =
  112.       {
  113.       kxJavaMethod = wiGetTextLength
  114.       kxJavaSignature = "()I"
  115.       kxPublicNames = "Get Length" "Text Length"
  116.       }
  117.  
  118.     kxPort GetLastKeystroke =
  119.       {
  120.       kxJavaMethod = wiGetLastKeystroke
  121.       kxJavaSignature = "()LString"
  122.       kxPublicNames = "Get Last Keystroke" "Last Character as String"
  123.       }
  124.  
  125.     kxInclude "BackAndForeColor.ipt"
  126.  
  127.     kxPort GetText = 
  128.       {
  129.       kxJavaMethod = wiGetText
  130.       kxJavaSignature = "()LString"
  131.       kxPublicNames = "Get Text" "Text String"
  132.       }
  133.  
  134.     kxPort SetText = 
  135.       {
  136.       kxJavaMethod = wiSetText
  137.       kxJavaSignature = "(LString;)LString"
  138.       kxPublicNames = "Set Text" "string" "Old Text String"
  139.       }
  140.  
  141.     kxPort PrefixText = 
  142.       {
  143.       kxJavaMethod = wiPrefixText
  144.       kxJavaSignature = "(LString;)Z"
  145.       kxPublicNames = "Prefix Text" "string" "Is TextArea Valid"
  146.       }
  147.  
  148.     kxPort AppendText = 
  149.       {
  150.       kxJavaMethod = wiAppendText
  151.       kxJavaSignature = "(LString;)Z"
  152.       kxPublicNames = "Append Text" "string" "Is TextArea Valid"
  153.       }
  154.  
  155.     kxPort InsertText = 
  156.       {
  157.       kxJavaMethod = wiInsertText
  158.       kxJavaSignature = "(LString;I)Z"
  159.       kxPublicNames = "Insert Text" "string" "position" "Is TextArea Valid"
  160.       }
  161.  
  162.     kxPort ReplaceText = 
  163.       {
  164.       kxJavaMethod = wiReplaceText
  165.       kxJavaSignature = "(LString;LPoint;)Z"
  166.       kxPublicNames = "Replace Text" "string" "Replace start,end" "Is TextArea Valid"
  167.       }
  168.  
  169.     kxPort SetFilteredCharacter =
  170.       {
  171.       kxJavaMethod = wiSetFilteredCharacter
  172.       kxJavaSignature = "(LString;)LString"
  173.       kxPublicNames = "Set Filtered Character" "Filtered Character" "Old Filtered Character"
  174.       }
  175.  
  176.     kxPort PrefixCarriageReturn = 
  177.       {
  178.       kxJavaMethod = wiPrefixCarriageReturn
  179.       kxJavaSignature = "()Z"
  180.       kxPublicNames = "Prefix Carriage Return" "Is TextArea Valid"
  181.       }
  182.  
  183.     kxPort InsertCarriageReturn = 
  184.       {
  185.       kxJavaMethod = wiInsertCarriageReturn
  186.       kxJavaSignature = "(I)Z"
  187.       kxPublicNames = "Insert Carriage Return" "position" "Is TextArea Valid"
  188.       }
  189.  
  190.     kxPort AppendCarriageReturn = 
  191.       {
  192.       kxJavaMethod = wiAppendCarriageReturn
  193.       kxJavaSignature = "()Z"
  194.       kxPublicNames = "Append Carriage Return" "Is TextArea Valid"
  195.       }
  196.  
  197.     kxPort ClearText =
  198.       {
  199.       kxJavaMethod = wiClearText
  200.       kxJavaSignature = "()Z"
  201.       kxPublicNames = "Clear Data" "true"
  202.       }
  203.  
  204.     kxPort Enable =
  205.       {
  206.       kxJavaMethod = wiEnable
  207.       kxJavaSignature = "()Z"
  208.       kxPublicNames = "Enable" "Was not Enabled"
  209.       }
  210.  
  211.     kxPort IsDisabled =
  212.       {
  213.       kxJavaMethod = wiIsDisabled
  214.       kxJavaSignature = "()Z"
  215.       kxPublicNames = "Is Disabled?" "Is Disabled"
  216.       }
  217.  
  218.     kxPort Disable =
  219.       {
  220.       kxJavaMethod = wiDisable
  221.       kxJavaSignature = "()Z"
  222.       kxPublicNames = "Disable" "Was not Disabled"
  223.       }
  224.     }
  225.  
  226.  
  227.   kxInputPortsMenu =
  228.     {
  229.     Reset
  230.     On
  231.     Off
  232.     Toggle
  233.     kxSeparator
  234.     Enable
  235.     Disable
  236.     kxSeparator
  237.     SetText
  238.     SetFocus
  239.     SelectAll
  240.     GetText
  241.     kxMenu "More" =
  242.       {
  243.       kxInclude "Basic.imn"
  244.       kxMenu "Position"
  245.         {
  246.         kxInclude "PositionBasic.imn"
  247.         }
  248.       kxInclude "Size.imn"
  249.       kxInclude "Visibility.imn"
  250.       kxInclude "BackAndForeColor.imn"
  251.       kxMenu "State" =
  252.         {
  253.         MakeClickable
  254.         MakeEditable
  255.         kxSeparator
  256.         MakeUnClickable
  257.         MakeUnEditable
  258.         }
  259.       kxSeparator
  260.       kxMenu "Data Entry" =
  261.         {
  262.         GetText
  263.         GetLastKeystroke
  264.         GetLength
  265.         kxSeparator
  266.         SetText
  267.         PrefixText
  268.         InsertText
  269.         AppendText
  270.         ReplaceText
  271.         kxSeparator
  272.         PrefixCarriageReturn
  273.         InsertCarriageReturn
  274.         AppendCarriageReturn
  275.         SetFilteredCharacter
  276.         kxSeparator
  277.         ClearText
  278.         }
  279.       kxMenu "Focus" =
  280.         {
  281.         LoseFocus
  282.         SetFocus
  283.         SetFocusandEnable
  284.         }
  285.       kxMenu "Selection" =
  286.         {
  287.         GetSelectedText
  288.         GetSelection
  289.         kxSeparator
  290.         SetSelection
  291.         SelectAll
  292.         }
  293.       }
  294.     }
  295.  
  296.  
  297.   kxOutputPorts =
  298.     {
  299.     kxInclude "MouseEvt.opt"
  300.     kxInclude "SizePos.opt"
  301.     kxPort CarriageReturn =
  302.       {
  303.       kxJavaSignature = "(LHwObject;)V"
  304.       kxPublicNames = "Carriage Return" "text string" "Not Specified"
  305.       }
  306.  
  307.     kxPort EscapeCharacter =
  308.       {
  309.       kxJavaSignature = "(LHwObject;)V"
  310.       kxPublicNames = "Escape Character" "text string" "Not Specified"
  311.       }
  312.  
  313.     kxPort TabCharacter =
  314.       {
  315.       kxJavaSignature = "(LHwObject;)V"
  316.       kxPublicNames = "Tab Character" "text string" "Not Specified"
  317.       }
  318.  
  319.     kxPort CharacterEntered =
  320.       {
  321.       kxJavaSignature = "(LHwObject;)V"
  322.       kxPublicNames = "Character Entered" "keystroke string" "Not Specified"
  323.       }
  324.  
  325.     kxPort CharacterDisplayed =
  326.       {
  327.       kxJavaSignature = "(LHwObject;)V"
  328.       kxPublicNames = "Character Displayed" "keystroke echo string" "Not Specified"
  329.       }
  330.  
  331.     kxPort GettingFocus =
  332.       {
  333.       kxJavaSignature = "()V"
  334.       kxPublicNames = "Getting Focus" "Not Specified"
  335.       }
  336.  
  337.     kxPort LosingFocus =
  338.       {
  339.       kxJavaSignature = "()V"
  340.       kxPublicNames = "Losing Focus" "Not Specified"
  341.       }
  342.     }
  343.  
  344.  
  345.   kxOutputPortsMenu =
  346.     {
  347.     CarriageReturn
  348.     EscapeCharacter
  349.     CharacterDisplayed
  350.     kxSeparator
  351.     kxMenu "Mouse Events" =
  352.       {
  353. //      ButtonUp
  354. //      ButtonDown
  355. //      kxSeparator
  356.       MouseEnter
  357.       MouseLeave
  358.       }
  359. //    kxMenu "Focus Events" =
  360. //      {
  361. //      GettingFocus
  362. //      LosingFocus
  363. //      }
  364.     kxInclude "SizePos.omn"
  365.     kxSeparator
  366.     kxMenu "Data Entry" =
  367.       {
  368.       CarriageReturn
  369.       EscapeCharacter
  370.       TabCharacter
  371.       CharacterEntered
  372.       CharacterDisplayed
  373.       }
  374.     }
  375.   }
  376.